#include <iostream>
#include <string>

using namespace std;

int main(){
    string s = "word";
    string p1 = s + (s[s.size()-1] == 's' ? "" : "s");
    cout << s <<endl;
    cout<<p1<<endl;
}